package com.jxy.bean.attribute;

import com.jxy.bean.ClassFile;
import com.jxy.bean.constant.ConstantPool;
import com.jxy.tool.Tool;

import javax.xml.bind.DatatypeConverter;
import java.io.DataInputStream;
import java.util.Arrays;

public class AttributeDefaultInfo extends AttributeInfo {
    private byte[] infos;

    public AttributeDefaultInfo(DataInputStream dis, ClassFile cf) {
        super(dis, cf);
        this.infos = Tool.readBytes(dis, attribute_length);
    }

    @Override
    public String toString() {
        return "AttributeDefaultInfo{" + DatatypeConverter.printHexBinary(infos) + '}';
    }
}
